package 链式栈;
public class Node {
    Object data;//数据域
    Node next;//指针域

    public Node(Node nextval){
        this.next=nextval;
    }
    public Node(Object obj, Node nextval){
        this.data = obj;
        this.next = nextval;
    }
}
